package com.sample.wanandroidx.support

interface IUrls {

    //登录
    val login: String
        get() = "/user/login"

    //注册
    val registered: String
        get() = "user/register"

    //首页banner
    val banner: String
        get() = "banner/json"

    //登出
    val logout: String
        get() = "user/logout/json"

    //首页文章列表
    val articlelist: String
        get() = "article/list/0/json"

    //热门项目
    val articlehot: String
        get() = "article/listproject/0/json"

    //置顶文章
    val articletop: String
        get() = "article/top/json"

    //常用网站
    val friendjson: String
        get() = "friend/json"

    //搜索热词
    val hotkeyjson: String
        get() = "hotkey/json"

    //搜索结果
    val queryjson: String
        get() = "article/query/0/json"

    //体系数据
    val treejson: String
        get() = "tree/json"

    //体系数据下的文章
    val treejsonarticle: String
        get() = "article/list/0/json?cid="

    //按照作者昵称搜索文章
    val authorjson: String
        get() = "article/list/0/json?author="

    //获取公众号列表
    val wxarticlejson: String
        get() = "wxarticle/chapters/json"

    //导航数据
    val navijson: String
        get() = "navi/json"

    //项目分类
    val projecttreejson: String
        get() = "project/tree/json"

    //项目列表数据 从1开始
    val projecttreearticle: String
        get() = "project/list/1/json?cid="

    //广场列表数据
    val userarticlejson: String
        get() = "user_article/list/0/json"

    //问答列表数据
    val wendajson: String
        get() = "wenda/list/0/json"

    //查看某个公众号历史数据
    fun wxarticlelistjson(id: Int) = "wxarticle/list/$id/1/json"

    //我的收藏
    val lgcollect: String
        get() = "lg/collect/list/0/json"

    //收藏站内文章
    fun lgcollectarticle(id: Int) = "lg/collect/$id/json"

    //收藏站外文章
    val lgcollectadd: String
        get() = "lg/collect/add/json"

    //取消收藏
    fun uncollectoriginId(id: Int) = "lg/uncollect/$id/json"

    //取消（首页）
    fun uncollectoriginIdhome(id: Int) = "lg/uncollect_originId/$id/json"

    //我分享的文章
    val lgprivatearticles: String
        get() = "user/lg/private_articles/1/json"

    //我的积分
    val userinfocoin: String
        get() = "lg/coin/userinfo/json"

    //个人积分列表
    val lgcoinlist: String
        get() = "lg/coin/list/1/json"

    //分享人对应列表数据 从1开始
    fun sharearticles(userId: Int) = "user/$userId/share_articles/1/json"

}